// dexviewDlg.h : header file
//

#if !defined(AFX_DEXVIEWDLG_H__DB9DCFA9_2218_4264_8DB4_0571D528B172__INCLUDED_)
#define AFX_DEXVIEWDLG_H__DB9DCFA9_2218_4264_8DB4_0571D528B172__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CDexviewDlg dialog
//#pragma pack()
class CDexviewDlg : public CDialog
{
// Construction
public:
	int InsertStringValue(int CurrentIndex,int index,int valuesize,char *vaule);
	int ShowDexStringId();
	int ShowDexTypeId();
	int ShowDexFieldId();
	int insertValue(int index,DWORD offset,char * valuename,char * pdata);
	int insertTypeId(int index,void * pdata);
	int ShowHeader();
	int ShowDexMethodId();
	int insertFieldId(int index,void * pdata);
	int insertMethodId(int index,void * pdata);
	int ShowDexClassDef(HTREEITEM item);
	int insertClassDef(int index,void * pdata);
	int ShowDexClassHeader(HTREEITEM item);
	int GetItemIndexFormParent(HTREEITEM hParent,HTREEITEM item);
	int insertClassData(HTREEITEM item,void *pheader);
	int ShowStaticField(HTREEITEM item);
	int InsertClassDataField(int index,void *Field,unsigned int lastfieldIdx);
	int ShowInstanceField(HTREEITEM item);
	int ShowDirectMethod(HTREEITEM item);
	int InsertClassDataMethod(int index,void *pdata,unsigned int lastfieldIdx);
	int ShowVirtualMethod(HTREEITEM item);
	int InsertClassDataMethodAndCode(int index,void *ppMethod,void * ppcode,unsigned int lastfieldIdx);
	int ShowDexProtoId();
	int insertProtoId(int index,void * pdata);
	CDexviewDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CDexviewDlg)
	enum { IDD = IDD_DEXVIEW_DIALOG };
	CListCtrl	m_listData;
	CTreeCtrl	m_treetype;
	CString	m_csfilename;
	//}}AFX_DATA
	
	FILE * m_pfile;
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDexviewDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CDexviewDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnClickTreeData(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDblclkTreeData(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBnOpen();
	afx_msg void OnBNClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DEXVIEWDLG_H__DB9DCFA9_2218_4264_8DB4_0571D528B172__INCLUDED_)
